<?php

abstract class Element {
    
    private $id;
    
    public function __construct($id) {
        $this->id = $id;
    }
    
    public function __toString() {
        return $this->generate();
    }
    
    public abstract function generate();
    
    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }
}
?>
